<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<div class="content" id="map">
</div>
<div class="ongoing" ng-class="{false:'hide-ongoing'}[driverBox.isShow]">
    <div class="action-top" ng-click="switchOngoing()"><img src="imgs/arrow_top.png" alt=""></div>
    <!-- 司机预计到达时间 -->
    <div class="time-driver-arrive" ng-show="isSongji">
        <span>司机预计到达时间</span>
        <span class="plan-time">{{appInfo.MaxPickupTime | date:'HH:mm'}}</span>
    </div>
    <!-- 行程中的各种状态 -->
    <div class="og-statu">
        {{appInfo.showState.text}}
    </div>
    <div class="driver-info">
        <div class="d-info">司机信息</div>
        <div class="d-row">
            <label for="" class="car-no-label">车牌号</label><span class="car-no">{{appInfo.License}}</span></div>
        <div class="d-row">
            <label for="">司机姓名</label><span>{{appInfo.DriverName}}</span></div>
        <div class="d-row">
            <label for="">司机电话</label><span>{{appInfo.DriverPhone}}</span>
            <span class="call-phone"><a href="tel:{{appInfo.DriverPhone}}"></a></span>
        </div>
        <div class="d-row" ng-if="driverBox.isShowSure && !noAction">
            <div class="sure-appointment" style="" ng-click="sureArived()">确认到达</div>
        </div>
    </div>
</div>
<script>
// var lushu;
// // 实例化一个驾车导航用来生成路线
// var drv = new BMap.DrivingRoute('成都', {
//     onSearchComplete: function(res) {
//         if (drv.getStatus() == BMAP_STATUS_SUCCESS) {
//             var arrPois = res.getPlan(0).getRoute(0).getPath();
//             map.addOverlay(new BMap.Polyline(arrPois, {
//                 strokeColor: '#ff0000'
//             }));
//             map.setViewport(arrPois);

//             lushu = new BMapLib.LuShu(map, arrPois, {
//                 defaultContent: "跑跑跑", //"从天安门到百度大厦"
//                 autoView: true, //是否开启自动视野调整，如果开启那么路书在运动过程中会根据视野自动调整
//                 icon: new BMap.Icon('http://bestwise.cc/m/img/person/1.png', new BMap.Size(152, 176), {
//                     anchor: new BMap.Size(27, 13)
//                 }),
//                 speed: 4500,
//                 enableRotation: true, //是否设置marker随着道路的走向进行旋转
//                 landmarkPois: []
//             });
//         }
//     }
// });
</script>
